home *** CD-ROM | disk | FTP | other *** search
/ Aminet 19 / Aminet 19 (1997)(GTI - Schatztruhe)[!][Jun 1997].iso / Aminet / game / patch / leanderhd.lha / Leander / Install-Leander next >
Text File  |  1997-04-03  |  2KB  |  95 lines

  1. (set #CI_unit 0)
  2. (set #CI_drive ("DF%ld:" #CI_unit))
  3.  
  4.  
  5. ;----------------------------
  6. ;try to figure out a place where the user usually installs his games
  7. (if (exists "Games:" (noreq) )
  8.     (set @default-dest "Games:")
  9.     (if (exists "SYS:Games" (noreq) )
  10.         (set @default-dest "SYS:Games")
  11.         (if (exists "Work:Games" (noreq) )
  12.             (set @default-dest "Work:Games")
  13.             (if (exists "JEUX:" (noreq) )
  14.                (set @default-dest "JEUX:")
  15.                (set @default-dest "SYS:")
  16.             )
  17.         )
  18.     )
  19. )
  20.  
  21.  
  22. (set @default-dest
  23. (askdir
  24.     (prompt ("Where should %s installed ?\nA drawer \"%s\" will automatically created." @app-name @app-name))
  25.     (help @askdir-help)
  26.     (default @default-dest)
  27.     (disk)
  28. )
  29. )
  30.  
  31. (set #dest (tackon @default-dest @app-name))
  32.  
  33.  
  34. (makedir #dest
  35.     (help @makedir-help)
  36.     (infos)
  37. )
  38.  
  39. ;----------------------------
  40.  
  41. (copyfiles
  42.     (help @copyfiles-help)
  43.     (source "leanderhd")
  44.     (dest #dest)
  45.     (infos)
  46. )
  47.  
  48.  
  49. (copyfiles
  50.     (help @copyfiles-help)
  51.     (source "leanderhd.readme")
  52.     (dest #dest)
  53.     (infos)
  54. )
  55.  
  56.  
  57. (message ("\nInsert %s disk 3 into drive %s !" @app-name #CI_drive))
  58.     (if
  59.         (= 0 (run ("rippsyfiles %ld %s 'QUES' >CON:0/0/350/200/Ripping/CLOSE/WAIT" #CI_unit #dest)))
  60.         ("")
  61.         (abort "\"rippsyfiles\" must be in your path !")
  62.     )
  63.  
  64.  
  65. (message ("\nInsert %s disk 2 into drive %s !" @app-name #CI_drive))
  66.     (if
  67.         (= 0 (run ("rippsyfiles %ld %s 'WORL' >CON:0/0/350/200/Ripping/CLOSE/WAIT" #CI_unit #dest)))
  68.         ("")
  69.         (abort "\"rippsyfiles\" must be in your path !")
  70.     )
  71.  
  72.  
  73. (message ("\nInsert %s disk 1 into drive %s !" @app-name #CI_drive))
  74.     (if
  75.         (= 0 (run ("rippsyfiles %ld %s 'BULK' >CON:0/0/350/200/Ripping/CLOSE/WAIT" #CI_unit #dest)))
  76.         ("")
  77.         (abort "\"rippsyfiles\" must be in your path !")
  78.     )
  79.  
  80.  
  81. (copyfiles
  82.     (help @copyfiles-help)
  83.     (source "START")
  84.     (dest #dest)
  85. )
  86.  
  87. (copyfiles
  88.     (help @copyfiles-help)
  89.     (source "LEANDER")
  90.     (dest #dest)
  91. )
  92.  
  93. (exit)
  94.  
  95.